package com.itxzh.poidemo.controller;

import com.itxzh.poidemo.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * 小excel导出的Controller
 *
 * @Author ldt
 * @Date 2022/5/9 9:52
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/smallExcel")
public class SmallExcelController {

    @Autowired
    PersonService personService;

    /**
     * 普通方式导出excel
     *
     * @Author ldt
     * @Date 2022/5/10 14:41
     * @Version 1.0.0
     * @param response
     * @return void
     */
    @RequestMapping("/smallExport")
    public void smallExport(HttpServletResponse response) {

        personService.smallExport(response);
    }
}
